﻿/*===========================================================
	TASK 2:                                          {Loop's}
	Write a program that prints all the numbers from 1 to N,
    that are not divisible by 3 and 7 at the same time.  
============================================================*/

using System;

class NotDivisibleBy3And7
{
    static void Main()
    {
        Console.Write("Enter n=");
        double n = double.Parse(Console.ReadLine());

        int counter = 1;
        while (counter <= n)
        {
            if ((counter % 3 == 0) || (counter % 7 == 0))
            {
                
                counter++;
                continue;
            }

            Console.WriteLine(counter);
            counter++;
        }
    }
}

